home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / snowball.swf / scripts / DefineSprite_379 / frame_1 / DoAction.as
Text File  |  2011-08-19  |  3KB  |  95 lines

  1. if(_root.weight > _root.worldrecord)
  2. {
  3.    _root.worldrecord = _root.weight;
  4.    whichrecord = "WORLD";
  5.    if(_root.worldchampion != _root.playername)
  6.    {
  7.       _root.new_world = 1;
  8.       _root.n_world = _root.n_world + 1;
  9.       _root.worldchampion = _root.playername;
  10.    }
  11.    else
  12.    {
  13.       _root.new_world = 2;
  14.    }
  15.    _root.noofchampionships = _root.n_world + _root.n_national + _root.n_regional + _root.n_hometown + _root.n_backyard;
  16.    gotoAndStop(2);
  17. }
  18. else if(_root.weight > _root.nationalrecord)
  19. {
  20.    _root.nationalrecord = _root.weight;
  21.    whichrecord = "NATIONAL";
  22.    if(_root.nationalchampion != _root.playername)
  23.    {
  24.       _root.new_national = 1;
  25.       _root.n_national = _root.n_national + 1;
  26.       _root.nationalchampion = _root.playername;
  27.    }
  28.    else
  29.    {
  30.       _root.new_national = 2;
  31.    }
  32.    _root.noofchampionships = _root.n_world + _root.n_national + _root.n_regional + _root.n_hometown + _root.n_backyard;
  33.    gotoAndStop(2);
  34. }
  35. else if(_root.weight > _root.regionalrecord)
  36. {
  37.    _root.regionalrecord = _root.weight;
  38.    whichrecord = "REGIONAL";
  39.    if(_root.regionalchampion != _root.playername)
  40.    {
  41.       _root.new_regional = 1;
  42.       _root.n_regional = _root.n_regional + 1;
  43.       _root.regionalchampion = _root.playername;
  44.    }
  45.    else
  46.    {
  47.       _root.new_regional = 2;
  48.    }
  49.    _root.noofchampionships = _root.n_world + _root.n_national + _root.n_regional + _root.n_hometown + _root.n_backyard;
  50.    gotoAndStop(2);
  51. }
  52. else if(_root.weight > _root.hometownrecord)
  53. {
  54.    _root.hometownrecord = _root.weight;
  55.    whichrecord = "HOMETOWN";
  56.    if(_root.hometownchampion != _root.playername)
  57.    {
  58.       _root.new_hometown = 1;
  59.       _root.n_hometown = _root.n_hometown + 1;
  60.       _root.hometownchampion = _root.playername;
  61.    }
  62.    else
  63.    {
  64.       _root.new_hometown = 2;
  65.    }
  66.    _root.noofchampionships = _root.n_world + _root.n_national + _root.n_regional + _root.n_hometown + _root.n_backyard;
  67.    gotoAndStop(2);
  68. }
  69. else if(_root.weight > _root.backyardrecord)
  70. {
  71.    _root.backyardrecord = _root.weight;
  72.    whichrecord = "BACKYARD";
  73.    if(_root.backyardchampion != _root.playername)
  74.    {
  75.       _root.new_backyard = 1;
  76.       _root.n_backyard = _root.n_backyard + 1;
  77.       _root.backyardchampion = _root.playername;
  78.    }
  79.    else
  80.    {
  81.       _root.new_backyard = 2;
  82.    }
  83.    _root.noofchampionships = _root.n_world + _root.n_national + _root.n_regional + _root.n_hometown + _root.n_backyard;
  84.    gotoAndStop(2);
  85. }
  86. else
  87. {
  88.    _root.new_world = 0;
  89.    _root.new_national = 0;
  90.    _root.new_regional = 0;
  91.    _root.new_hometown = 0;
  92.    _root.new_backyard = 0;
  93. }
  94. stop();
  95.